package dy.app.enums;

import lombok.Getter;

/**
 * 统一业务枚举
 * Author: cKnight
 * Date: 2024/6/11
 */
@Getter
public enum BizCodeEnum {
    /**
     * 系统级 响应枚举
     */
    SUCCESS(0, "成功"),
    FAIL(-1, "网络异常"),
    ILLEGAL_REQUEST(10001,"非法请求"),
    SYS_ARGS_ERROR(11001,"参数缺少请检查！"),

    /**
     * 后管系统相关
     */
    SYS_USER_LOGIN_EXPIRE(12001,"登录失效,请重新登录"),
    SYS_USER_LOGIN_ERROR(12002,"账号或密码错误,请重新登录"),


    /**
     * 小程序相关
     */

    APP_USER_LOGIN_EXPIRE(20001,"校验到您登录失效,请重新启动小程序或应用"),
    ;

    private Integer code;
    private String msg;

    BizCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
